package com.yinian.server.mapper;


import com.yinian.pojo.vo.CommunityVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CommunityMapper {
    List<CommunityVO> getCommunityList();
@Insert("insert into community(user_id,content,create_time) values(#{userId},#{content},#{createTime})")
    void insertMessage(long userId, String content, LocalDateTime createTime);
}
